<?php
/**
 * Description of common
 *
 * @author Bobay
 * 
 */

/*
 * 获得CSS文件
 */
function getCssFiles() {
    define(CSS_PATH, __ROOT__."/Tpl/Backend/Default/Public/css/");
    define(JQ_CSS_PATH, __ROOT__."/Tpl/Backend/Default/Public/css/jquery_ui/boCMS/");
    $modelCssPath = explode('/', __URL__);
    if($modelCssPath[3] == 'Public') {
        $cssFiles = array(CSS_PATH.'debug.css',CSS_PATH.'mixins.css',CSS_PATH.'reset.css',CSS_PATH.'screen.css',JQ_CSS_PATH.'jquery_ui.css',CSS_PATH.$modelCssPath[3].'.css');
    }else{
        $cssFiles = array(CSS_PATH.'debug.css',CSS_PATH.'mixins.css',CSS_PATH.'reset.css',CSS_PATH.'screen.css');
    }
    return $cssFiles;
}

/*
 * 获得CSS文件
 */
function getJsFiles() {
    define(JS_PATH, __ROOT__."/Tpl/Backend/Default/Public/js/");
    define(JQ_JS_PATH, __ROOT__."/Tpl/Backend/Default/Public/js/jquery/");

    $jsFiles = array(JQ_JS_PATH.'jquery.js',JQ_JS_PATH.'jquery.ui.js',JQ_JS_PATH.'jquery.ui.dialog.patch.js',JQ_JS_PATH.'jquery.tools.js',JQ_JS_PATH.'jquery.backend.js',JS_PATH.'utils.js');

    return $jsFiles;
}

?>
